package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_permission_data_rule
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_permission_data_rule")
public class SysPermissionDataRule implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * ID
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 菜单ID
     */
    @Column(name = "permission_id", length = 32)
    private String permissionId;
    
    /**
     * 规则名称
     */
    @Column(name = "rule_name", length = 50)
    private String ruleName;
    
    /**
     * 字段
     */
    @Column(name = "rule_column", length = 50)
    private String ruleColumn;
    
    /**
     * 条件
     */
    @Column(name = "rule_conditions", length = 50)
    private String ruleConditions;
    
    /**
     * 规则值
     */
    @Column(name = "rule_value", length = 300)
    private String ruleValue;
    
    /**
     * 权限有效状态1有0否
     */
    @Column(name = "status", length = 3)
    private String status;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 修改人
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    @Override
    public String toString() {
        return "SysPermissionDataRule{" +
            "id=" + id +
            ", permissionId=" + permissionId +
            ", ruleName=" + ruleName +
            ", ruleColumn=" + ruleColumn +
            ", ruleConditions=" + ruleConditions +
            ", ruleValue=" + ruleValue +
            ", status=" + status +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 